include ../Makefile.shared

define PROJ_fminbr
  SOURCES = fminbr_impl.cc fminbr_stubs.cc fminbr.ml
  RESULT = fminbr
endef
export PROJ_fminbr

# If the environment does not define subprojects to handle,
# then set a default
ifndef SUBPROJS
  export SUBPROJS = fminbr
endif

# Default target to use
all: ncl
	cp fminbr.cmi fminbr.cmxa fminbr.a libfminbr_stubs.a $(SRCLIBDIR)

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@
